package com.car.controller;

import com.car.entity.Sell_pet;
import com.car.service.ISell_petService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Description:
 * @author: hsy
 * @version: v1.0
 * @Date
 */
@Controller
public class Sell_petController {
    @Autowired
    @Qualifier("sell_petService")
    private ISell_petService iSell_petService;

    //增加预售卡
    @GetMapping(value = "/addSell_pet")
    public String addSell_pet(Sell_pet sell_pet){
        System.out.println(sell_pet);
        System.out.println(123);
        iSell_petService.addSell_pet(sell_pet);
        return "/presell_Card.jsp";
    }
}
